package com.ljl.test;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.entity.Billrecord;
import com.entity.Order;
import com.entity.Orderdetail;
import com.entity.Payrecord;
import com.entity.Repro;
import com.service.ljl.billrecordservice;
import com.service.ljl.orderdetailservice;
import com.service.ljl.returnservice;


public class returntest {
	private returnservice returnservice;
	@Before
	public void init() {
		ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
		returnservice=ac.getBean(returnservice.class);
	}
	@After
	public void tearDown() {
		returnservice=null;
	}
	
	@Test
	public void add() {
		Order order=new Order();
		order.setOrId(3);
		Repro repro=new Repro();
		repro.setOrder(order);
		returnservice.add(repro);
	}

}
